import http from '@/utils/request'
import { paramsType } from './utils/interface'

export function getList(params: paramsType): Promise<any> {
  return http.request({
    url: '/promise/getList',
    method: 'get',
    params
  })
}

export function getUserPromise(params?: paramsType): Promise<any> {
  return http.request({
    url: '/promise/getPromise',
    method: 'get',
    params
  })
}

export function getUserMenu(params?: paramsType): Promise<any> {
  return http.request({
    url: '/promise/getMenu',
    method: 'get',
    params
  })
}
